home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / CUGUK / COMMS / C101.ZIP / UUPC11XS.ZIP / MAKEFILE next >
Text File  |  1992-12-18  |  26KB  |  877 lines

  1. # *--------------------------------------------------------------------*
  2. # *     Program:        MAKEFILE                15 May 1989            *
  3. # *     Author:         Andrew H. Derbyshire                           *
  4. # *                     P.O. Box 132                                   *
  5. # *                     Arlington, MA 02174                            *
  6. # *     Function:       Build UUPC/extended from source files          *
  7. # *     Processor:      Borland MAKE version 3.5                       *
  8. # *     External files: MASM or TASM    (8088 Assembler)               *
  9. # *                     BCC             (Borland C++ 2.0 compiler)     *
  10. # *                     LINK or TLINK   (MS-DOS Linker)                *
  11. # *                     TDSTRIP         (Turbo debugger utility).      *
  12. # *                     MOVE.COM        (Rename files between          *
  13. # *                                     directories)                   *
  14. # *                     Input source files.                            *
  15. # *                                                                    *
  16. # *   Changes Copyright (c) 1989 by Andrew H. Derbyshire.              *
  17. # *                                                                    *
  18. # *   Changes Copyright (c) 1990-1992 by Kendra Electronic             *
  19. # *   Wonderworks.                                                     *
  20. # *                                                                    *
  21. # *   All rights reserved except those explicitly granted by the       *
  22. # *   UUPC/extended license agreement.                                 *
  23. # *                                                                    *
  24. # *     Note:   If you don't have Turbo Debugger, you can modify the   *
  25. # *             BCC options to not generate debugging information      *
  26. # *             and then just copy the modules to the production       *
  27. # *             directory.  See options file, below.                   *
  28. # *                                                                    *
  29. # *     Note:   MOVE can be created by putting a COPY followed by a    *
  30. # *             ERASE in a MOVE.BAT file.  This is slower than a true  *
  31. # *             move program (which just renames between directories), *
  32. # *             but life is hard.                                      *
  33. # *--------------------------------------------------------------------*
  34. #
  35. #     $Id: MAKEFILE 1.8 1992/12/18 13:05:00 ahd Exp $
  36. #
  37. #     Revision history:
  38. #     $Log: MAKEFILE $
  39. #    Revision 1.8  1992/12/18  13:05:00  ahd
  40. #    Drop system aliases
  41. #
  42. #       Revision 1.7  1992/12/11  12:43:53  ahd
  43. #       Add aliases file to list of samples
  44. #
  45. #       Revision 1.6  1992/12/04  00:59:25  ahd
  46. #       Add copyright statements
  47. #
  48. #       Revision 1.5  1992/11/29  22:39:15  ahd
  49. #       Add *.txt files to documentation archive (for RFC's)
  50. #
  51. #       Revision 1.4  1992/11/23  02:43:59  ahd
  52. #       Add scripts (batch files) to RCS
  53. #       Change expire.com and rnews.com to exe files
  54. #
  55. #       Revision 1.3  1992/11/22  21:04:42  ahd
  56. #       Add normalize() to build
  57. #
  58. #       Revision 1.2  1992/11/18  01:34:57  ahd
  59. #       Drop -k flag
  60. #
  61. #    Revision 1.1  1992/11/10  04:11:14  ahd
  62. #    Initial revision
  63. #
  64. #Revision 1.2  1992/05/03  17:19:14  ahd
  65. #Add library inclusion to generation of small .COM files
  66. #
  67.  
  68. .autodepend
  69.  
  70. .nosilent
  71.  
  72. #       The memory model to be built.
  73.  
  74. !if !$d(MODEL)
  75. MODEL   = s
  76. !endif
  77.  
  78. !if !$d(WINMODE)
  79. WINMODE=D
  80. !endif
  81.  
  82. !if $(WINMODE) == "W"
  83. SUFFIX  = $(WINMODE)$(MODEL)
  84. !else
  85. SUFFIX  = $(MODEL)
  86. !endif
  87.  
  88. # *--------------------------------------------------------------------*
  89. # *   Our release number.  This is updated each time we ship it        *
  90. # *   out to some unsuspecting user, or sometimes when we do a         *
  91. # *   major fix even if we don't ship it out to the lusers.  ANY       *
  92. # *   VERSION NOT DONE ON kendra SHOULD BE TAGGED AS N.NNAm, WHERE     *
  93. # *   N.NNA IS THE NUMBER UUPC was shipped as, and 'm' any string      *
  94. # *   to indentify your special version.  Just upping the              *
  95. # *   distributed version number will confuse you AND me.              *
  96. # *--------------------------------------------------------------------*
  97.  
  98. VERS = 1.11x
  99.  
  100. # *--------------------------------------------------------------------*
  101. # *   Hard Drive letter, and directories on the hard drive to be       *
  102. # *   used.  The link files are also affected by this parameter.       *
  103. # *--------------------------------------------------------------------*
  104.  
  105. !if !$d(TMP)
  106. TMP     = \tmp
  107. !endif
  108.  
  109. !if d$(SRC)
  110. !error can't handle this!
  111. !else
  112. SRC     = .
  113. !endif
  114.  
  115.  
  116. DOCS    = $(SRCSLASH)docs
  117. CONF    = \uupc
  118. LIB     = $(SRCSLASH)lib
  119. OBJ     = $(SRCSLASH)bcobj$(SUFFIX)
  120. MAIL    = $(SRCSLASH)mail
  121. RNEWS   = $(SRCSLASH)rnews
  122. RN      = $(SRCSLASH)rn
  123. UTIL    = $(SRCSLASH)util
  124. UUCICO  = $(SRCSLASH)uucico
  125. TEST    = $(SRCSLASH)test
  126. UUCP    = $(SRCSLASH)uucp
  127. WINWORD = $(SRCSLASH)winword
  128. SCRIPT = $(SRCSLASH)scripts
  129. MAP     = NUL
  130. .path.obj  = $(OBJ)
  131.  
  132. !if !$d(ARCHIVE)
  133. ARCHIVE=$(SRCSLASH)$(VERS)
  134. !endif
  135.  
  136. !if !$d(PROD)
  137. PROD    = \uupc\bin
  138. !endif
  139.  
  140. FMT     = $(PROD)\fmt.com
  141.  
  142. !if !$d(WINPROD)
  143. WINPROD    = \uupc\winbin
  144. !endif
  145.  
  146. !if $(WINMODE) == "W"
  147. PROD    =       $(WINPROD)
  148. !endif
  149.  
  150. !if !$d(BORLANDC)
  151. BORLANDC = \borlandc
  152. !endif
  153.  
  154. !if !$d(BLIB)
  155. BLIB =  $(BORLANDC)\lib
  156. !endif
  157.  
  158. !if !$d(BINC)
  159. BINC =  $(BORLANDC)\include
  160. !endif
  161.  
  162. UUPCCFG  = $(TMP)\uupc$(SUFFIX).cfg
  163.  
  164. UUPCDEFS = $(TMP)\uupc$(SUFFIX).mak
  165. UUPCDEFM=$(TMP)\uupcm.mak
  166.  
  167. COMMON  = $(UUPCCFG) $(UUPCDEFS)
  168.  
  169. # *--------------------------------------------------------------------*
  170. # *        The names of various object files that we create.           *
  171. # *--------------------------------------------------------------------*
  172.  
  173. TIMESTMP = $(OBJ)\timestmp.obj
  174.  
  175. WORKFILE = $(TMP)\UUPCTEMP.TMP
  176.  
  177. # *--------------------------------------------------------------------*
  178. # *                Final locations of various targets                  *
  179. # *--------------------------------------------------------------------*
  180.  
  181. BUGSDOC = $(WINWORD)\bugs.doc
  182. CHNGDOC = $(WINWORD)\changes.doc
  183. CMDSDOC = $(WINWORD)\commands.doc
  184. HOW2DOC = $(WINWORD)\howtoget.doc
  185. INSTDOC = $(WINWORD)\install.doc
  186. MAILDOC = $(WINWORD)\mail.doc
  187. READDOC = $(WINWORD)\readme.doc
  188. REGRDOC = $(WINWORD)\register.doc
  189. STATDOC = $(WINWORD)\uustat.doc
  190. TILDDOC = $(WINWORD)\tilde.doc
  191. DOCW    = $(BUGSDOC) $(CHNGDOC) $(CMDSDOC) $(HOW2DOC) $(INSTDOC) \
  192.           $(MAILDOC) $(READDOC) $(REGRDOC) $(STATDOC) $(TILDDOC)
  193. BUGSLST = $(WINWORD)\bugs.prn
  194. CHNGLST = $(WINWORD)\changes.prn
  195. CMDSLST = $(WINWORD)\commands.prn
  196. INSTLST = $(WINWORD)\install.prn
  197. HOW2LST = $(WINWORD)\howtoget.prn
  198. MAILLST = $(WINWORD)\mail.prn
  199. READLST = $(WINWORD)\readme.prn
  200. REGRLST = $(WINWORD)\register.prn
  201. STATLST = $(WINWORD)\uustat.prn
  202. TILDLST = $(WINWORD)\tilde.prn
  203. DOCSLIST= $(BUGSLST) $(CHNGLST) $(CMDSLST) $(HOW2LST) $(INSTLST) \
  204.           $(MAILLST) $(READLST) $(REGRLST) $(STATLST) $(TILDLST)
  205. LIVEFILES = $(DOCS)\active.kew $(DOCS)\permissn.kew $(DOCS)\aliases.kew \
  206.             $(DOCS)\kendra.rc $(DOCS)\ahd.rc $(DOCS)\hostpath.kew
  207.  
  208. REQUIRED= $(PROD)\mail.exe $(PROD)\rmail.exe $(PROD)\uucico.exe\
  209.           $(PROD)\uuxqt.exe
  210. SCRIPTS=  $(PROD)\su.bat $(PROD)\uuclean.bat $(PROD)\uuio.bat \
  211.           $(PROD)\waiting.bat
  212. OPTIONAL= $(PROD)\uucp.com $(PROD)\uuname.com $(PROD)\uupoll.exe\
  213.           $(PROD)\uustat.com $(PROD)\uusub.com $(PROD)\comm34.com\
  214.           $(PROD)\uux.com $(FMT) $(PROD)\gensig.com $(PROD)\novrstrk.com \
  215.           $(SCRIPTS)
  216. NEWS    = $(PROD)\rnews.exe $(PROD)\expire.exe $(PROD)\rn.exe\
  217.           $(PROD)\newsetup.exe
  218.  
  219. INSTALL = $(REQUIRED) $(OPTIONAL) $(NEWS)
  220.  
  221. SAMPLES = $(DOCS)\systems $(DOCS)\passwd $(DOCS)\hostpath \
  222.           $(DOCS)\personal.rc $(DOCS)\uupc.rc \
  223.           $(DOCS)\personal.sig $(DOCS)\aliases.txt \
  224.           $(DOCS)\mail.ico $(DOCS)\uucico.ico $(DOCS)\up-pif.dvp
  225. SAMPLEX = systems passwd hostpath *.rc *.mdm personal.sig aliases.txt *.ico
  226.  
  227. MAKEFILE = $(SRCSLASH)makefile
  228.  
  229. STARTUP  = $(BLIB)\c0$(SUFFIX)
  230. STARTUPT = $(BLIB)\c0t
  231.  
  232. UUPCLIB  = $(TMP)\cuupc$(SUFFIX).lib
  233. UUPCLIBW = $(TMP)\cuupc$(SUFFIX)w.lib
  234. LIBRARY2 = $(BLIB)\c$(SUFFIX).lib
  235.  
  236. !if $(WINMODE) == "W"
  237. LIBRARY3 = $(BLIB)\import.lib
  238. LIBRARY  = $(UUPCLIB)+$(UUPCLIBW)+$(LIBRARY2)+$(LIBRARY3)
  239. !else
  240. LIBRARY  = $(UUPCLIB)+$(LIBRARY2)
  241. !endif
  242. LIBRARIES= $(LIBRARY:+= )
  243.  
  244. COMMON  = $(UUPCCFG) $(UUPCDEFS) $(UUPCLIB)
  245.  
  246. REQZIPV = $(ARCHIVE)\uupcreq.zip
  247. OPTZIPV = $(ARCHIVE)\uupcopt.zip
  248. NEWZIPV = $(ARCHIVE)\uupcnews.zip
  249. DOCZIPV = $(ARCHIVE)\uupcdoc.zip
  250. WINZIPV = $(ARCHIVE)\uupcwin.zip
  251. SRCZIPV1 = $(ARCHIVE)\uupcsrc1.zip
  252. SRCZIPV2 = $(ARCHIVE)\uupcsrc2.zip
  253.  
  254. # *--------------------------------------------------------------------*
  255. # *     Various Program names and their options                        *
  256. # *--------------------------------------------------------------------*
  257.  
  258. CC = bcc +$(UUPCCFG)
  259. LINKER  = tlink
  260. !if $(WINMODE) == "W"
  261. LINKOPT =  /c /s /v /s /yx /Twe
  262. LINKOPTT = /c /s /t /x /Twe
  263. !else
  264. LINKOPT =  /c /s /v /s /yx
  265. LINKOPTT = /c /s /t /x
  266. !endif
  267.  
  268. TASM    = tasm.exe
  269. TASMOPT = /mx /z /zi /w3 /DUUPC
  270. ZIP     = pkzip
  271.  
  272. # *--------------------------------------------------------------------*
  273. # *                Begin rules for building modules.                   *
  274. # *                                                                    *
  275. # *        The first definition is the one built by default.           *
  276. # *--------------------------------------------------------------------*
  277.  
  278. # *--------------------------------------------------------------------*
  279. # *     test builds the basic UUPC modules in the source directory.    *
  280. # *--------------------------------------------------------------------*
  281.  
  282. test:    mail.exe uucico.exe\
  283.          rmail.exe uuxqt.exe uucp.exe uupoll.exe\
  284.          uux.exe uustat.exe uusub.exe\
  285.          rnews.exe expire.exe
  286.  
  287. # *--------------------------------------------------------------------*
  288. # *   Prod build the basic modules and then moves them to $(PROD)      *
  289. # *--------------------------------------------------------------------*
  290.  
  291. prod:   $(INSTALL)
  292.         - erase $(TIMESTMP)
  293.         - erase $(UUPCLIB)
  294.  
  295. required: $(REQUIRED)
  296.  
  297. # *--------------------------------------------------------------------*
  298. # *     Install builds the UUPC modules, installs the executables      *
  299. # *     in the production directory, formats the documentation files,  *
  300. # *     and creates PKZIP files for giving away.                       *
  301. # *--------------------------------------------------------------------*
  302.  
  303. install: $(INSTALL) $(REQZIPV) $(OPTZIPV) $(NEWZIPV) \
  304.          $(SRCZIPV1) $(SRCZIPV2) \
  305.          $(DOCZIPV) $(WINZIPV) regen
  306.         - erase $(WORKFILE)
  307.         @echo Installed UUPC and created ZIP files $(REQZIPV),
  308.         @echo $(OPTZIPV), $(NEWZIPV),
  309.         @echo $(SRCZIPV1), $(SRCZIPV2),
  310.         @echo $(DOCZIPV), and $(WINZIPV)
  311.         - erase $(TIMESTMP)
  312.         - erase $(UUPCLIB)
  313.  
  314. # *--------------------------------------------------------------------*
  315. # *                 Build just the source .ZIP file.                   *
  316. # *--------------------------------------------------------------------*
  317.  
  318. szip:   $(SRCZIPV1) $(SRCZIPV2)
  319.  
  320. #       Do a purge of various temporary output files.
  321.  
  322. clean:
  323.         wipeinfo $(SRCSLASH)*.com /n /s /batch
  324.         wipeinfo $(SRCSLASH)*.exe /n /s /batch
  325.         wipeinfo $(SRCSLASH)*.tds /n /s /batch
  326.         wipeinfo $(SRCSLASH)*.lib /n /s /batch
  327.         wipeinfo $(SRCSLASH)*.obj /n /s /batch
  328.         wipeinfo $(SRCSLASH)*.o   /n /s /batch
  329.         wipeinfo $(SRCSLASH)*.map /n /s /batch
  330.  
  331. # *--------------------------------------------------------------------*
  332. # *           The production copies of executables follow.             *
  333. # *--------------------------------------------------------------------*
  334.  
  335. $(PROD)\mail.exe: mail.exe
  336.         - erase $<
  337.         move $? $<
  338.         - erase $&.tds
  339.  
  340. $(PROD)\uucp.com: uucp.com
  341.         - erase $<
  342.         move $? $<
  343.         - erase $&.tds
  344.  
  345. $(PROD)\uusub.com: uusub.com
  346.         - erase $<
  347.         move $? $<
  348.         - erase $&.tds
  349.  
  350. $(PROD)\uuxqt.exe: uuxqt.exe
  351.         - erase $<
  352.         move $? $<
  353.         - erase $&.tds
  354.  
  355. $(PROD)\uupoll.exe: uupoll.exe
  356.         - erase $<
  357.         move $? $<
  358.         - erase $&.tds
  359.  
  360. $(PROD)\rmail.exe: rmail.exe
  361.         - erase $<
  362.         move $? $<
  363.         - erase $&.tds
  364.  
  365. $(PROD)\uuname.exe: uuname.exe
  366.         - erase $<
  367.         move $? $<
  368.         - erase $&.tds
  369.  
  370. $(PROD)\uustat.com: uustat.com
  371.         - erase $<
  372.         move $? $<
  373.         - erase $&.tds
  374.  
  375. $(PROD)\uux.com: uux.com
  376.         - erase $<
  377.         move $? $<
  378.         - erase $&.tds
  379.  
  380. $(PROD)\comm34.com: comm34.com
  381.         - erase $<
  382.         move $? $<
  383.         - erase $&.tds
  384.  
  385. $(PROD)\uuname.com: uuname.com
  386.         - erase $<
  387.         move $? $<
  388.         - erase $&.tds
  389.  
  390. $(FMT): fmt.com
  391.         - erase $<
  392.         move $? $<
  393.         - erase $&.tds
  394.  
  395. $(PROD)\gensig.com: gensig.com
  396.         - erase $<
  397.         move $? $<
  398.         - erase $&.tds
  399.  
  400. $(PROD)\novrstrk.com: novrstrk.com
  401.         - erase $<
  402.         move $? $<
  403.         - erase $&.tds
  404.  
  405. $(PROD)\uucico.exe: uucico.exe
  406.         - erase $<
  407.         move $? $<
  408.         - erase $&.tds
  409.  
  410. $(PROD)\rnews.exe: rnews.exe
  411.         - erase $<
  412.         move $? $<
  413.         - erase $&.tds
  414.  
  415. $(PROD)\rn.exe: rn.exe
  416.         - erase $<
  417.         move $? $<
  418.         - erase $&.tds
  419.  
  420. $(PROD)\newsetup.exe: newsetup.exe
  421.         - erase $<
  422.         move $? $<
  423.         - erase $&.tds
  424.  
  425. $(PROD)\expire.exe: expire.exe
  426.         - erase $<
  427.         move $? $<
  428.         - erase $&.tds
  429.  
  430. $(PROD)\su.bat: $(SCRIPT)\su.bat
  431.         copy $? $<
  432.  
  433. $(PROD)\uuio.bat: $(SCRIPT)\uuio.bat
  434.         copy $? $<
  435.  
  436. $(PROD)\uuclean.bat: $(SCRIPT)\uuclean.bat
  437.         copy $? $<
  438.  
  439. $(PROD)\waiting.bat: $(SCRIPT)\waiting.bat
  440.         copy $? $<
  441.  
  442. # *--------------------------------------------------------------------*
  443. # *                         The .ZIP files.                            *
  444. # *--------------------------------------------------------------------*
  445.  
  446. # *--------------------------------------------------------------------*
  447. # *                           UUPCSRC.ZIP                              *
  448. # *--------------------------------------------------------------------*
  449.  
  450. $(SRCZIPV1): $(MAKEFILE) $(SRCSLASH)nmake.gcc $(SRCSLASH)nmake $(TIMESTMP) $(FMT)
  451.         - mkdir $:.
  452.         $(FMT) -0 &&!
  453. $(MAKEFILE)
  454. nmake
  455. nmake.gcc
  456. lib\*.c
  457. lib\*.h
  458. lib\*.mak
  459. mail\*.c
  460. mail\*.h
  461. mail\*.mak
  462. uucico\*.asm
  463. uucico\*.c
  464. uucico\*.h
  465. uucico\*.mak
  466. uucp\*.c
  467. uucp\*.h
  468. uucp\*.mak
  469. !       $(WORKFILE)
  470.        -12 $(ZIP) -o- -P -u $< @$(WORKFILE)
  471.        pkbanner $<  &&!
  472. Kendra Electronic Wonderworks: UUPC/extended $(VERS) source files (1 of 2)
  473.  
  474. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  475. Wonderworks.  May be distributed freely if original source and documentation
  476. files are included.  Please direct all questions on UUPC/extended to
  477. help@kew.com.
  478. !
  479.  
  480. $(SRCZIPV2): $(FMT)
  481.         - mkdir $:.
  482.         $(FMT) -0 &&!
  483. rn\*.c
  484. rn\*.h
  485. rn\*.mak
  486. rnews\*.c
  487. rnews\*.h
  488. rnews\*.mak
  489. test\*.c
  490. test\*.h
  491. test\*.mak
  492. util\*.c
  493. util\*.h
  494. util\*.mak
  495. !       $(WORKFILE)
  496.        -12 $(ZIP) -o- -P -u $< @$(WORKFILE)
  497.        pkbanner $<  &&!
  498. Kendra Electronic Wonderworks: UUPC/extended $(VERS) source files (2 of 2)
  499.  
  500. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  501. Wonderworks.  May be distributed freely if original source and documentation
  502. files are included.  Please direct all questions on UUPC/extended to
  503. help@kew.com.
  504. !
  505.  
  506. # *--------------------------------------------------------------------*
  507. # *       UUPCWIN.ZIP - Word for Windows unformatted documents         *
  508. # *--------------------------------------------------------------------*
  509.  
  510. $(WINZIPV):  $(DOCW) $(FMT) $(MAKEFILE)
  511.         - mkdir $:.
  512.         $(FMT) -0 &&!
  513. $(DOCW)
  514. winword\manual.dot
  515. !       $(WORKFILE)
  516.        -12 $(ZIP) -o- -u $< @$(WORKFILE)
  517.        pkbanner $<  &&!
  518. Kendra Electronic Wonderworks: UUPC/extended $(VERS) Unformatted Documents
  519.  
  520. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  521. Wonderworks.  May be distributed freely if original source and documentation
  522. files are included.  Please direct all questions on UUPC/extended to
  523. help@kew.com.
  524. !
  525.  
  526. # *--------------------------------------------------------------------*
  527. # *                UUPCREQ.ZIP - Required Executables                  *
  528. # *--------------------------------------------------------------------*
  529.  
  530. $(REQZIPV):  $(REQUIRED) $(FMT) $(MAKEFILE)
  531.         - mkdir $:.
  532.         $(FMT) -0 &&!
  533. $(REQUIRED)
  534. !       $(WORKFILE)
  535.        -12 $(ZIP) -o- -p -u $< @$(WORKFILE)
  536.        pkbanner $<  &&!
  537. Kendra Electronic Wonderworks: UUPC/extended $(VERS) DOS executables (1 of 3)
  538.  
  539. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  540. Wonderworks.  May be distributed freely if original source and documentation
  541. files are included.  Please direct all questions on UUPC/extended to
  542. help@kew.com.
  543. !
  544.  
  545. # *--------------------------------------------------------------------*
  546. # *                UUPCOPT.ZIP - Optional Executables                  *
  547. # *--------------------------------------------------------------------*
  548.  
  549. $(OPTZIPV):  $(OPTIONAL) $(FMT) $(MAKEFILE)
  550.         - mkdir $:.
  551.         $(FMT) -0 &&!
  552. $(OPTIONAL)
  553. !       $(WORKFILE)
  554.        -12 $(ZIP) -o- -p -u $< @$(WORKFILE)
  555.        pkbanner $<  &&!
  556. Kendra Electronic Wonderworks: UUPC/extended $(VERS) DOS executables (2 of 3)
  557.  
  558. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  559. Wonderworks.  May be distributed freely if original source and documentation
  560. files are included.  Please direct all questions on UUPC/extended to
  561. help@kew.com.
  562. !
  563.  
  564. # *--------------------------------------------------------------------*
  565. # *                 UUPC/extended - NEWS executables                   *
  566. # *--------------------------------------------------------------------*
  567.  
  568. $(NEWZIPV):  $(NEWS) $(FMT) $(MAKEFILE)
  569.         - mkdir $:.
  570.         $(FMT) -0 &&!
  571. $(NEWS)
  572. !       $(WORKFILE)
  573.        -12 $(ZIP) -o- -p -u $< @$(WORKFILE)
  574.        pkbanner $<  &&!
  575. Kendra Electronic Wonderworks: UUPC/extended $(VERS) DOS executables (3 of 3)
  576.  
  577. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  578. Wonderworks.  May be distributed freely if original source and documentation
  579. files are included.  Please direct all questions on UUPC/extended to
  580. help@kew.com.
  581. !
  582.  
  583. # *--------------------------------------------------------------------*
  584. # *        UUPCDOC.ZIP - Formatted (Human readable) documents          *
  585. # *--------------------------------------------------------------------*
  586.  
  587. docs: $(DOCZIPV) $(WINZIPV)
  588.  
  589. $(DOCZIPV):  $(SAMPLES) $(DOCSLIST) $(FMT) $(MAKEFILE) $(LIVEFILES)
  590.         - mkdir $:.
  591.         $(FMT) -0 &&!
  592. $(DOCSLIST)
  593. $(SAMPLES)
  594. $(DOCS)\*.mdm
  595. $(DOCS)\*.inf
  596. $(DOCS)\*.txt
  597. $(DOCS)\*.spb
  598. $(LIVEFILES)
  599. !       $(WORKFILE)
  600.        -12 $(ZIP) -o- -p -u $< @$(WORKFILE)
  601.        pkbanner $< &&!
  602. Kendra Electronic Wonderworks: UUPC/extended $(VERS) documents and sample files
  603.  
  604. Changes and Compilation Copyright (c) 1990-1992 by Kendra Electronic
  605. Wonderworks.  May be distributed freely if original source and documentation
  606. files are included.  Please direct all questions on UUPC/extended to
  607. help@kew.com.
  608. !
  609.  
  610. # *--------------------------------------------------------------------*
  611. # *                     Link our various modules                       *
  612. # *--------------------------------------------------------------------*
  613.  
  614. mail.exe: common
  615.         $(MAKE) -f$(MAIL)\mail.mak -DUUPCDEFS=$(UUPCDEFS) $<
  616.  
  617. rmail.exe: common
  618.         $(MAKE) -f$(MAIL)\mail.mak -DUUPCDEFS=$(UUPCDEFS) $<
  619.  
  620. uucp.exe: common
  621.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  622.  
  623. uucp.com: common
  624.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  625.  
  626. uuname.exe: common
  627.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  628.  
  629. uuname.com: common
  630.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  631.  
  632. uustat.exe: common
  633.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  634.  
  635. uustat.com: common
  636.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  637.  
  638. uusub.exe: common
  639.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  640.  
  641. uusub.com: common
  642.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  643.  
  644. uux.exe: common
  645.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  646.  
  647. uux.com: common
  648.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  649.  
  650. uuxqt.exe: common
  651.         $(MAKE) -f$(UUCP)\uucp.mak -DUUPCDEFS=$(UUPCDEFS) $<
  652.  
  653. comm34.com: common
  654.         $(MAKE) -f$(UTIL)\util.mak -DUUPCDEFS=$(UUPCDEFS) $<
  655.  
  656. fmt.com: common
  657.         $(MAKE) -f$(UTIL)\util.mak -DUUPCDEFS=$(UUPCDEFS) $<
  658.  
  659. gensig.com: common
  660.         $(MAKE) -f$(UTIL)\util.mak -DUUPCDEFS=$(UUPCDEFS) $<
  661.  
  662. novrstrk.com: common
  663.         $(MAKE) -f$(UTIL)\util.mak -DUUPCDEFS=$(UUPCDEFS) $<
  664.  
  665. uupoll.exe: common
  666.         $(MAKE) -f$(UTIL)\util.mak -DUUPCDEFS=$(UUPCDEFS) $<
  667.  
  668. expire.exe: common
  669.         $(MAKE) -f$(RNEWS)\rnews.mak -DUUPCDEFS=$(UUPCDEFS) $<
  670.  
  671. rnews.exe: common
  672.         $(MAKE) -f$(RNEWS)\rnews.mak -DUUPCDEFS=$(UUPCDEFS) $<
  673.  
  674. common: $(.path.obj) $(COMMON)
  675.  
  676. commonm:
  677.         $(MAKE) -f$(MAKEFILE) -DMODEL=m -DWINMODE=$(WINMODE) -DUUPCDEFS=$(UUPCDEFM) common
  678.  
  679. $(.path.obj):
  680.         - mkdir $(.path.obj)
  681.  
  682. uucico.exe: commonm
  683.         $(MAKE) -f$(UUCICO)\UUCICO.mak -DUUPCDEFS=$(UUPCDEFM) $<
  684.  
  685. rn.exe: commonm
  686.         $(MAKE) -f$(RN)\RN.mak -DUUPCDEFS=$(UUPCDEFM) $<
  687.  
  688. newsetup.exe: commonm
  689.         $(MAKE) -f$(RN)\RN.mak -DUUPCDEFS=$(UUPCDEFM) $<
  690.  
  691. # *--------------------------------------------------------------------*
  692. # *     Force a regeneration of the time stamp/version module.         *
  693. # *--------------------------------------------------------------------*
  694.  
  695. regen:  $(LIB)\timestmp.c
  696.         - erase $(TIMESTMP)
  697.  
  698. # *--------------------------------------------------------------------*
  699. # *     The timestamp module has a reference to this MAKEFILE,         *
  700. # *     which insures whenever we change the version number the        *
  701. # *     time stamp gets re-generated.                                  *
  702. # *--------------------------------------------------------------------*
  703.  
  704. $(TIMESTMP): $(LIB)\timestmp.c $(UUPCCFG) $(REGEN)
  705.  
  706. # *--------------------------------------------------------------------*
  707. # *     Common library build                                           *
  708. # *--------------------------------------------------------------------*
  709.  
  710. $(UUPCLIB):
  711.         $(MAKE) -f $(LIB)\lib.mak -DUUPCDEFS=$(UUPCDEFS) $<
  712.         echo Built $<
  713.  
  714. $(UUPCLIBW):
  715.         $(MAKE) -f $(LIB)\lib.mak -DUUPCDEFS=$(UUPCDEFS) $<
  716.         echo Built $<
  717.  
  718. # *--------------------------------------------------------------------*
  719. # *   Live files from the Wonderworks we provide as additional         *
  720. # *   examples                                                         *
  721. # *--------------------------------------------------------------------*
  722.  
  723.  
  724. $(DOCS)\active.kew: $(CONF)\active
  725.         copy $? $<
  726.  
  727. $(DOCS)\permissn.kew: $(CONF)\permissn
  728.         copy $? $<
  729.  
  730. $(DOCS)\kendra.rc: $(CONF)\uupc.rc
  731.         copy $? $<
  732.  
  733. $(DOCS)\ahd.rc: $(CONF)\ahd.rc
  734.         copy $? $<
  735.  
  736. $(DOCS)\hostpath.kew: $(CONF)\hostpath
  737.         copy $? $<
  738.  
  739. # *--------------------------------------------------------------------*
  740. # *                  *Compiler Configuration File*                     *
  741. # *--------------------------------------------------------------------*
  742.  
  743.  
  744. !if $(WINMODE) == "W"
  745. GENERATE = -W
  746. !endif
  747.  
  748. #       -N-     <=== disables
  749.  
  750. $(UUPCCFG): $(MAKEFILE) $(UUPCDEFS)
  751.   copy &&|
  752. $(GENERATE)
  753. -c
  754. -d
  755. -DUUPCV="$(VERS)"
  756. -D?__HEAPCHECK__
  757. -D?__CORELEFT__
  758. -D?_DEBUG
  759. -D?UDEBUG
  760. -DIOCTL
  761. -f
  762. -G
  763. -I$(LIB)
  764. -I$(BINC)
  765. -L$(BLIB)
  766. -nbcobj$(SUFFIX)
  767. -N
  768. -k-
  769. -O
  770. -P-.C
  771. -r
  772. -v
  773. -Z
  774. -wpro
  775. -wdcl
  776. -weas
  777. -will
  778. -wpin
  779. -wrvl
  780. -wamb
  781. -wamp
  782. -wnod
  783. -wstv
  784. -wuse
  785. -wsig
  786. -wucp
  787. -O2
  788. -m$(MODEL)
  789. | $<
  790.  
  791. $(UUPCDEFS): $(MAKEFILE)
  792.   copy &&|
  793. .path.obj  = $(.path.obj)
  794. ARCHIVE    = $(ARCHIVE)
  795. TASM       = $(TASM)
  796. TASMOPT    = $(TASMOPT)
  797. BINC       = $(BINC)
  798. BLIB       = $(BLIB)
  799. BORLANDC   = $(BORLANDC)
  800. BUGSDOC    = $(BUGSDOC)
  801. BUGSLST    = $(BUGSLST)
  802. CC         = $(CC)
  803. CHNGDOC    = $(CHNGDOC)
  804. CHNGLST    = $(CHNGLST)
  805. CMDSDOC    = $(CMDSDOC)
  806. CMDSLST    = $(CMDSLST)
  807. DOCS       = $(DOCS)
  808. DOCSLIST   = $(DOCSLIST)
  809. DOCW       = $(DOCW)
  810. DOCZIPV    = $(DOCZIPV)
  811. FMT        = $(FMT)
  812. HOW2DOC    = $(HOW2DOC)
  813. HOW2LST    = $(HOW2LST)
  814. INSTALL    = $(INSTALL)
  815. INSTDOC    = $(INSTDOC)
  816. INSTLST    = $(INSTLST)
  817. LIB        = $(LIB)
  818. LIBRARIES  = $(LIBRARIES)
  819. LIBRARY    = $(LIBRARY)
  820. LIBRARY2   = $(LIBRARY2)
  821. LINKER     = $(LINKER)
  822. LINKOPT    = $(LINKOPT)
  823. LINKOPTT   = $(LINKOPTT)
  824. MAIL       = $(MAIL)
  825. MODEL      = $(MODEL)
  826. WINMODE    = $(WINMODE)
  827. SUFFIX     = $(SUFFIX)
  828. MAILDOC    = $(MAILDOC)
  829. MAILLST    = $(MAILLST)
  830. MAKEFILE   = $(MAKEFILE)
  831. MAP        = $(MAP)
  832. NEWS       = $(NEWS)
  833. NEWZIPV    = $(NEWZIPV)
  834. OBJ        = $(OBJ)
  835. OPTIONAL   = $(OPTIONAL)
  836. OPTZIPV    = $(OPTZIPV)
  837. PROD       = $(PROD)
  838. READDOC    = $(READDOC)
  839. READLST    = $(READLST)
  840. REGRDOC    = $(REGRDOC)
  841. REGRLST    = $(REGRLST)
  842. REQUIRED   = $(REQUIRED)
  843. REQZIPV    = $(REQZIPV)
  844. RNEWS      = $(RNEWS)
  845. RN         = $(RN)
  846. SAMPLES    = $(SAMPLES)
  847. SAMPLEX    = $(SAMPLEX)
  848. SRC        = $(SRC)
  849. SRCZIPV1   = $(SRCZIPV1)
  850. SRCZIPV2   = $(SRCZIPV2)
  851. STARTUP    = $(STARTUP)
  852. STARTUPT   = $(STARTUPT)
  853. STATDOC    = $(STATDOC)
  854. STATLST    = $(STATLST)
  855. TEST       = $(TEST)
  856. TILDDOC    = $(TILDDOC)
  857. TILDLST    = $(TILDLST)
  858. TIMESTMP   = $(TIMESTMP)
  859. TMP        = $(TMP)
  860. UTIL       = $(UTIL)
  861. UUCICO     = $(UUCICO)
  862. UUCICOCOM  = $(UUCICOCOM)
  863. UUCP       = $(UUCP)
  864. UUPCCFG    = $(UUPCCFG)
  865. UUPCLIB    = $(UUPCLIB)
  866. VERS       = $(VERS)
  867. WINWORD    = $(WINWORD)
  868. WINZIPV    = $(WINZIPV)
  869. WORKFILE   = $(WORKFILE)
  870. COMMON     = $(COMMON)
  871. ZIP        = $(ZIP)
  872.  
  873. .autodepend
  874.  
  875. .nosilent
  876. | $<
  877.